home *** CD-ROM | disk | FTP | other *** search
/ Trading on the Edge / Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin / pc / pc_files / mktdata / econdata / docutils / pdgsup.exe / COMPARE.DOC < prev    next >
Text File  |  1992-06-19  |  6KB  |  126 lines

  1. June 1992                    COMPARE 5.1
  2.  
  3.  
  4.     The Compare program is used to make tables with the results of running 
  5. model.  As the name suggests, it is particularly adapted to comparing 
  6. results of several runs of a model, but it can also list the contents of a 
  7. data bank or the results of a single run of a model.  When being used to 
  8. show a base case and several alternatives, it can show the alternatives as 
  9. actual values, or as deviations from the base, or as percentage deviations 
  10. from the base.  The results are written to a file which can then be sent
  11. to a printer.
  12.  
  13.     To use Compare, one first prepares a "stub" file such as this one for 
  14. the AMI model.
  15.  
  16. 85.0 86.0 87.0 86.1 86.2 86.3 86.4 87.1 87.2 87.3 87.4   
  17. ;
  18. ;                      THE AMI MODEL
  19. ;
  20. @
  21. ;
  22. gnp$     ;Gross national product
  23. c$ ;Personal consumption
  24. pibg$    ;Pers. income w/o gov't 
  25. pidis$   ;Personal disposable income 
  26. taxrate*100 ;taxrate*100 *
  27. gtnis$   ;Gov trans, net int, sub.
  28. cpc$     ;consumption per capita
  29. pop*1000;population (in millions) * 
  30. 100*(gnp$-gnp$[1])/gnp$[1] ;GNP growth rate
  31.  
  32.  
  33.     The first line must always give the dates of the periods which are to be 
  34. printed.  In a quarterly data bank or model, an annual date such as "82.0" 
  35. will print the annual average for the year.  COMPARE has several editing 
  36. features which are controlled by special characters at the beginning of a 
  37. line.  They are:
  38.  
  39. *      Go to the top of a new page and print the titles of the 
  40.        alternatives runs as given in the ".fix" file. 
  41.  
  42. * m    If there is not room for m more items on the page, go to 
  43.        a new page and print the dates across the top.
  44.  
  45. * m n  If there is not room on the page for m more items plus n 
  46.        lines, go to a new page and print the names of the base 
  47.        and alternative runs.
  48.  
  49. ;      Print the line just as it stands. 
  50.  
  51. @      Print the dates across the page above the appropriate 
  52.        columns. 
  53.  
  54. \ fw dp pl tm bm tw   
  55.        where fw dp pl tm bm and tw are all numbers.  This is an 
  56.        optional line to set the field width of each printed number 
  57.        to fw, the number of decimal places to be printed to dp, the 
  58.        page length to pl lines, the top margin tm lines, the 
  59.        bottom margin to bm lines, and the width of the titles to 
  60.        tw.  The last three may be omitted.  The default values
  61.        are 7 1 60 3 9 32.
  62.  
  63. \ g
  64.       where g is the letter g.  Show the growth rates in percent 
  65.       per year for the variables named on the following lines.  
  66.       Annual dates with a quarterly file will give growth of one 
  67.       year over the previous year.  Similarly, if adjacent columns
  68.       are more than one year apart the multiple year annual rates
  69.       are supplied.  For example, if the adjacent columns are 1988
  70.       and 1985, the rate displayed in the 1988 column is the anuual
  71.       rate of change from 1985 to 1988.
  72.  
  73. \ n
  74.       where n is the letter n.  Cancel a previous \ g.
  75.  
  76. \ ar
  77.       use if monthly or quarterly data is given at annual rates 
  78.       (the default). (ar = annual rates)
  79.  
  80. \ pr 
  81.       use if monthly or quarterly data is given at monthly or 
  82.       quarterly rates (pr = period rates). 
  83.  
  84.     A line beginning in any other way will be presumed to begin with a 
  85. variable name, such as gnp$, or an expression.  For the expressions, all 
  86. the functions available in G are also available in COMPARE.  After the 
  87. name or expression comes a ';', and after the ";" come up to thirty 
  88. characters which will be printed at the left side of the line.  Leading 
  89. blanks -- blanks between the ";" and the first visible letter on the 
  90. line -- will be printed and can be used to indent the titles.  I like to 
  91. use the suffix ".stb" in the names of such stub files, but the practice 
  92. is not necessary.
  93.  
  94.     Once the ".stb" file is ready, we can run COMPARE by typing "compare".  
  95. As soon as COMPARE starts, it asks whether you want to see the alternatives 
  96. in actual values, as differences from the base run, as percentage
  97. differences from the base, or whether you would like to see the growth 
  98. rates of all of the variables.  Type the indicated letter and a 'Enter' to 
  99. show your choice.  (If you are listing a data bank or a single run of a 
  100. model, it does not matter how you answer this question.)  You will then be
  101. asked for the name of the data bank containing the base run.  Reply with 
  102. the bank name, including the suffix ".bnk", ".cbk", or ".hbk".  Similarly 
  103. answer the questions about the names of the alternatives.  An answer of 
  104. just an 'Enter' to any of these questions will terminate the questioning. 
  105.  
  106.     You will then be asked for the name of the stub file and you reply with 
  107. the name of the stub file you have prepared.  (Use the full name, including 
  108. the ".stb".)  Finally it asks for the name of the output file.  I advise using 
  109. a ".out" suffix for these files.  When COMPARE has finished and given the DOS 
  110. prompt again, you can use the DOS Print command to obtain a printed copy.  
  111. The ".out" file will contain a few commands to the IBM graphics printer.  
  112. They will work on this and compatible printers; other printers may cause 
  113. trouble.  At present other printers are not supported but are not likely to 
  114. be of much interest for use with G because they will not print its graphs.  
  115.  
  116.     As an alternative to answering the individual questions asked by COMPARE, 
  117. you can put the answers into a file such as "comp.inp" on the distribution 
  118. disk and start the program with
  119.  
  120.     compare < comp.inp 
  121.  
  122. The "<" is a standard DOS device to tell a program to take all of the input 
  123. that it would normally take from the keyboard from the file following the 
  124. "<".  
  125.